package com.neusoft.neu24.nep.util;

import java.sql.Statement;
import java.util.Random;

/**
 * SmsCode 生成短信验证码
 *
 * @author Administrator
 * @version 2024/05/28 13:58
 **/
public class SmsCode {
    private static Random random = new Random();

    /**
     * 获得六位随机的整数
     * @return
     */
    public static String getCode(){
        String code = "";
        for (int i = 0; i < 6; i++) {
            code += random.nextInt(10);
        }
        return code;
    }
}